Counting Staircases in Integer Compositions
نویسندگان
چکیده
The main theorem establishes the generating function F which counts the number of times the staircase 1+2+3+ · · ·m+ fits inside an integer composition of n. F = km − qx my 1−x km−1 (1− q)x( 2 ) ( y 1−x )m + 1−x−xy 1−x ( km − qx my 1−x km−1 ) . where km = m−1 ∑ æ=0 xmj−( j 2) ( y 1− x )j . Here x and y respectively track the composition size and number of parts, whilst q tracks the number of such staircases contained.
منابع مشابه
Compositions of N with No Occurrence of K
A composition of n is an ordered collection of one or more positive integers whose sum is n. The number of summands is called the number of parts of the composition. A palindromic composition or palindrome is a composition in which the summands are the same in the given or in reverse order. Compositions may be viewed as tilings of 1-by-n rectangles with 1-by-i rectangles, 1 i n ≤ ≤ . We count t...
متن کاملA Unified Approach to Algorithms Generating Unrestricted and Restricted Integer Compositions and Integer Partitions
An original algorithm is presented that generates both restricted integer compositions and restricted integer partitions that can be constrained simultaneously by a) upper and lower bounds on the number of summands (parts) allowed, and b) upper and lower bounds on the values of those parts. The algorithm can implement each constraint individually, or no constraints to generate unrestricted se...
متن کاملInside-Out Polytopes
We present a common generalization of counting lattice points in rational polytopes and the enumeration of proper graph colorings, nowhere-zero flows on graphs, magic squares and graphs, antimagic squares and graphs, compositions of an integer whose parts are partially distinct, and generalized latin squares. Our method is to generalize Ehrhart’s theory of lattice-point counting to a convex pol...
متن کاملForbidden substrings on weighted alphabets
In an influential 1981 paper, Guibas and Odlyzko constructed a generating function for the number of length n strings over a finite alphabet that avoid all members of a given set of forbidden substrings. Here we extend this result to the case in which the strings are weighted. This investigation was inspired by the problem of counting compositions of an integer n that avoid all compositions of ...
متن کامل